import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { CommandHandler, NgCommandHandler } from '@farris/devkit';
import { TreeDataService as TreeDataService1 } from '@farris/command-services';
import { CommandService as CommandService1 } from '@farris/command-services';
var lefttreegridcomponentviewmodelloadFullTree1Handler = /** @class */ (function (_super) {
    tslib_1.__extends(lefttreegridcomponentviewmodelloadFullTree1Handler, _super);
    function lefttreegridcomponentviewmodelloadFullTree1Handler(_TreeDataService1, _CommandService1) {
        var _this = _super.call(this) || this;
        _this._TreeDataService1 = _TreeDataService1;
        _this._CommandService1 = _CommandService1;
        return _this;
    }
    lefttreegridcomponentviewmodelloadFullTree1Handler.prototype.schedule = function () {
        var _this = this;
        this.addTask('suspendFrameContextRowSelectedEvent', function (context) {
            var args = [];
            return _this.invoke(_this._CommandService1, 'suspendFrameContextRowSelectedEvent', args, context);
        });
        this.addTask('loadFullTree', function (context) {
            var args = [
                '{COMMAND~/params/virtualPropertyName}',
                '{COMMAND~/params/fullTreeType}',
                '{COMMAND~/params/loadType}',
                '{COMMAND~/params/filters}',
                '{COMMAND~/params/frozenCurrentRow}'
            ];
            return _this.invoke(_this._TreeDataService1, 'loadFullTree', args, context);
        });
        this.addTask('resumeFrameContextRowSelectedEvent', function (context) {
            var args = [];
            return _this.invoke(_this._CommandService1, 'resumeFrameContextRowSelectedEvent', args, context);
        });
        this.addTask('setCurrentId', function (context) {
            var args = [
                '{COMMAND~/params/currentId}'
            ];
            return _this.invoke(_this._TreeDataService1, 'setCurrentId', args, context);
        });
        this.addLink('suspendFrameContextRowSelectedEvent', 'loadFullTree', "1==1");
        this.addLink('loadFullTree', 'resumeFrameContextRowSelectedEvent', "1==1");
        this.addLink('resumeFrameContextRowSelectedEvent', 'setCurrentId', "1==1");
    };
    lefttreegridcomponentviewmodelloadFullTree1Handler = tslib_1.__decorate([
        Injectable(),
        NgCommandHandler({
            commandName: 'lefttreegridcomponentviewmodelloadFullTree1'
        }),
        tslib_1.__metadata("design:paramtypes", [TreeDataService1,
            CommandService1])
    ], lefttreegridcomponentviewmodelloadFullTree1Handler);
    return lefttreegridcomponentviewmodelloadFullTree1Handler;
}(CommandHandler));
export { lefttreegridcomponentviewmodelloadFullTree1Handler };
